# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=vidcutter
pkgver=6.0.5.1
pkgrel=5
pkgdesc="A modern, simple to use, constantly evolving and hella fast MEDIA CUTTER"
url="https://vidcutter.ozmartians.com"
arch="all !armhf" # Blocked by py3-qt5 -> qt5-qtdeclarative
license="GPL-3.0-or-later"
depends="python3 ffmpeg mediainfo py3-qt5 py3-opengl"
subpackages="$pkgname-doc $pkgname-pyc"
makedepends="cython mpv-dev python3-dev py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/ozmartian/vidcutter/archive/$pkgver.tar.gz
	pyqt5-5.15.8.patch
	$pkgname-libmpv2-1.patch::https://github.com/ozmartian/vidcutter/commit/1d88825feb5a73a50d019914ba9d0008562a58ce.patch
	"

prepare() {
	default_prepare

	rm vidcutter/libs/pympv/mpv.c
}

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
f2ea2a86d9eaa3c6593e785daad6869c151baa1add529c9edaf2282f7acad762fbb29804790aece5e4fcd89e9e9bc77f61d1f0b68a1b1f3ecf58951ee8f200e9  vidcutter-6.0.5.1.tar.gz
b87193045ba826a1ce29d4c32f5c7da6e791117c66ba32bc6740a08f09f28cdbeec597215121ccc7b9958f81bf299a0fa14e3f8c8200a8e355e08f948601b95f  pyqt5-5.15.8.patch
063908bf939c03952d623cc0ae7ea301d4605660a548e3088f6c901f3d98cf13a5e49180414c8a1c05931d9c4ca2a251858951676632768ff30954a6df7a4e4a  vidcutter-libmpv2-1.patch
"
